import random

def generate_test_case(n=20, value_range=(1, 10), k=3):
    nums = [random.randint(*value_range) for _ in range(n)]
    return nums, k
